using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace HadronData
{
    public class EdgeContentTypeReader : ContentTypeReader<Edge>
    {
        protected override Edge Read(ContentReader p_contentReader, Edge p_edge)
        {
            p_edge = new Edge();
            p_edge.Start = p_contentReader.ReadVector2();
            p_edge.End = p_contentReader.ReadVector2();
            p_edge.Colour = p_contentReader.ReadObject<Color>();
            return p_edge;
        }
    }
}
